import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入Element UI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 引入mavon-editor
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

// 引入highlight.js
import hljs from 'highlight.js'
import 'highlight.js/styles/github.css'

// 引入全局样式
import '@/styles/index.scss'

// 使用插件
Vue.use(ElementUI)
Vue.use(mavonEditor)

// 配置highlight.js
window.hljs = hljs

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
